/**
 * 
 */
package datamodel.tree.linked;

import datamodel.rucksack.Rucksack;
import datamodel.tree.TreeNode;

/**
 * An implementation of the TreeNode interface for a linked tree.
 * 
 * @author Kevin Munk, Jakob Karolus
 * @version 1.0
 * 
 */
public class LinkedTreeNode extends TreeNode {
	/**
	 * constructor
	 * 
	 * @param rucksack the rucksack to set
	 */
	public LinkedTreeNode(Rucksack rucksack) {
		super(rucksack);
	}

	private TreeNode leftNode;
	private TreeNode rightNode;
	private TreeNode parentNode;
	
	
	public TreeNode getLeftnode() {
		return leftNode;
	}
	public void setLeftnode(TreeNode node) {
		this.leftNode = node;
	}
	public TreeNode getRightnode() {
		return rightNode;
	}
	public void setRightnode(TreeNode rightnode) {
		this.rightNode = rightnode;
	}
	public TreeNode getParent() {
		return parentNode;
	}
	public void setParent(TreeNode parent) {
		this.parentNode = parent;
	}
}
